#ifndef __REDISSERVER_H
#define __REDISSERVER_H
#include "Mylogger.hh"
#include <hiredis/hiredis.h>
#include <string>
#include <iostream>
 
using std::string;
 
class Redisserver
{
public:
    Redisserver();
    bool hgetRedis(const string & key,string & value);
    bool hsetRedis(const string & key,const string & value);
private:
    redisContext * _redis;
};
 
#endif